export async function handleRequest(p) {
    try {
      const res = await p
      return [null, res]
    } catch (e) {
      console.error(e)
      return [new Error(e), null]
    }
  }